//
//  DefaultPagingProcess.h
//  Pagination
//
//  Created by XMac on 2018/11/16.
//  Copyright © 2018 XMac. All rights reserved.
//

/**
 通过继承这个类或者实现PagingProcess接口来进行自己的处理.
 */


#import <Foundation/Foundation.h>
#import "PagingProcess.h"

typedef void(^NetworkSuccess)(NSURLSessionDataTask * _Nonnull, id  _Nullable);
typedef void(^NetworkFailure)(NSURLSessionDataTask * _Nullable, NSError * _Nonnull);
typedef void(^FinishRefresh)(void);
typedef void(^FinishRefreshWithNoMore)(void);


NS_ASSUME_NONNULL_BEGIN

@interface DefaultPagingProcess : NSObject<PagingProcess>

-(void)setNetworkStatusBlockWithSuccess:(NetworkSuccess)networkSuccess
                            withFailure:(NetworkFailure)networkFailure
                      withUIFinishBlock:(FinishRefresh)finishRefresh
                             withNoMore:(FinishRefreshWithNoMore)finishRefreshWithNoMore;

@end

NS_ASSUME_NONNULL_END
